package com.gobi.consumer.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * feign.SynchronousMethodHandler#executeAndDecode(feign.RequestTemplate)
 */
@FeignClient(value = "provider-app")
public interface ProviderApi {

    @GetMapping(value = "/provider")
    String provider(@RequestParam(value = "name") String name);


    @GetMapping("/getUser")
    User getUser(@RequestParam(value = "name", defaultValue = "gobi") String name);

    @GetMapping("/void")
    void returnNull();

    @GetMapping("/void2")
    String returnNull2();
}

